package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户投票选项表
 * </p>
 *
 * @author Five Team
 * @since 2018-05-16
 */
@Data
@Accessors(chain = true)
@TableName("t_user_vote_option")
public class UserVoteOption extends Model<UserVoteOption> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 投票ID
     */
    private Long voteId;
    /**
     * 投票选项ID
     */
    private Long voteOptionId;
    private Date createDate;
    private Date updateDate;
    /**
     * 更新人
     */
    private String updateBy;
    //    private Integer version;
    private Long userVoteId;

    private transient User user;
    private transient Vote vote;
    private transient VoteOption voteOption;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
